﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage.Master" AutoEventWireup="true" CodeBehind="AdminAdd.aspx.cs" Inherits="market.AdminAdd" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <title>添加管理员</title>
    <style>
        .custom-add-row {
            margin-top:10px;
        }
        .custom-control-cell {
            display:table-cell;
        }
    </style>
    <link href="Content/datetimepicker/bootstrap-datetimepicker.min.css" rel="stylesheet" />
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <h3>添加管理员</h3>
    <div class="row custom-add-row">
        <div class="col-sm-2 col-md-2 text-right">
            用户名：
        </div>
        <div class="col-sm-4 col-md-4">
            <asp:TextBox id="txtName" runat="server" CssClass="form-control"></asp:TextBox>									
        </div>
        <div class="col-sm-3 col-md-3">
            <span style="color:red;">
                *<asp:RequiredFieldValidator ID="rfvName" runat="server" ControlToValidate="txtName" Font-Size="9pt">请输入用户名</asp:RequiredFieldValidator>
            </span>
        </div>
    </div>
    <div class="row custom-add-row">
        <div class="col-sm-2 col-md-2 text-right">
            密码：
        </div>
        <div class="col-sm-4 col-md-4">
            <asp:TextBox ID="txtPassWord" runat="server" TextMode="Password" CssClass="form-control">请输入密码</asp:TextBox>
        </div>
        <div class="col-sm-3 col-md-3">
            <span style="color:red;">
                *<asp:RequiredFieldValidator ID="rfvPass" runat="server" ControlToValidate="txtPassWord" Font-Size="9pt">**</asp:RequiredFieldValidator>
            </span>
        </div>
    </div>
    <div class="row custom-add-row">
        <div class="col-sm-2 col-md-2 text-right">
            真实姓名：
        </div>
        <div class="col-sm-4 col-md-4">
            <asp:TextBox id="txtTrueName" runat="server" CssClass="form-control"></asp:TextBox>									
        </div>
        <div class="col-sm-3 col-md-3">
            <span style="color:red;">
                *<asp:RequiredFieldValidator ID="rfvTrueName" runat="server" ControlToValidate="txtTrueName" Font-Size="9pt">请输入真实姓名</asp:RequiredFieldValidator>
            </span>
        </div>
    </div>
    <div class="row custom-add-row">
        <div class="col-sm-2 col-md-2 text-right">
            Email：
        </div>
        <div class="col-sm-4 col-md-4">
            <asp:TextBox ID="txtEmail" runat="server" CssClass="form-control"></asp:TextBox>                                   
        </div>
        <div class="col-sm-3 col-md-3">
             <span style="color:red;">
                 *<asp:RequiredFieldValidator ID="rfvEmail" runat="server" ControlToValidate="txtEmail" Font-Size="9pt">请输入Email</asp:RequiredFieldValidator>
                  <asp:RegularExpressionValidator ID="revEmail" runat="server" ControlToValidate="txtEmail" Font-Size="9pt" ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*">Email格式有误</asp:RegularExpressionValidator>
            </span>
        </div>
    </div>
    <div class="row custom-add-row">
        <div class="col-sm-2 col-md-2 text-right">
            注册时间：
        </div>
        <div class="col-sm-4 col-md-4">
            <div class="input-group date form_datetime col-sm-12 col-md-12">
                    <input class="form-control" size="16" type="text" id="txtDate" runat="server" value="" readonly>
                    <span class="input-group-addon"><span class="fa fa-times fa-lg"></span></span>
					<span class="input-group-addon"><span class="fa fa-calendar fa-lg"></span></span>
            </div>
        </div>
        <div class="col-sm-3 col-md-3">
            
        </div>
    </div>
    <div class="row custom-add-row">
        <div class="col-sm-2 col-md-2 text-right">

        </div>
        <div class="col-sm-4 col-md-4">
            <asp:Button id="btnSave" runat="server" Text="保存" OnClick="btnSave_Click"  CssClass="form-control btn-primary custom-control-cell" Width="80"></asp:Button>&nbsp;&nbsp;
			<asp:Button id="btnCancel" runat="server" Text="取消" OnClick="btnCancel_Click" CausesValidation="False"  CssClass="form-control btn-danger custom-control-cell" Width="80"></asp:Button>
        </div>
        <div class="col-sm-3 col-md-3">

        </div>
    </div>
    <script src="Content/datetimepicker/bootstrap-datetimepicker.js"></script>
    <script src="Content/datetimepicker/bootstrap-datetimepicker.zh-CN.js"></script>
    <script type="text/javascript">
        $('.form_datetime').datetimepicker({
            todayBtn: 1,
            autoclose: 1,
            todayHighlight: 1,
            startView: 2,
            forceParse: 0,
            showMeridian: 1,
            minuteStep:3
        });
        </script>
</asp:Content>
